function deleteID(e){
	var targetID = getRowId(e.target);
	var tr = findUpElement(e.target, "tr");
	deleteBox(tr);
	$("#deleteBox form input#id").attr("value",targetID);
	$("#deleteBox form input#datatableName").attr("value",$("#mainDataTable").attr("datatableName"));
	var inputList = $("#deleteBox form input[type='text']");
	var dataList = $(tr).children("td");
	for(var i = 0; i < inputList.size(); i++){
		inputList[i].value = $(dataList[i]).text();
	}
	$('#deleteBox').dialog({ title: "删除项目"});
}
var mDeleteBox = $("<div><table><thead><tr/></thead><tbody><tr/></tbody></table></div>");
function deleteBox(aTr){
  var tr = findUpElement(aTr, "tr");
  var tdList = $(tr).children("td");
  mDeleteBox.tHeadTr = $(mDeleteBox).find("thead tr");
  mDeleteBox.tBodyTr = $(mDeleteBox).find("tbody tr");
  $(tdList).each(function (index, td) { 
    var colTitle = getColTitle(td);
    var colValue = $(td).text();
    $(mDeleteBox.tHeadTr).append("<th>"+ colTitle +"</th>");
    $(mDeleteBox.tBodyTr).append("<td>"+ colValue +"</td>");
  });
  $(mDeleteBox).dialog({ title: "删除项目"});
  return mDeleteBox;
}
$("table.datatable td div.operatorDelete").click(deleteID);
